.sectionForm {
    width: 80%;
}

.sectionNameText {
    margin-left: 5rem;
    text-align: left;
    color: #000000;
    font-size: 2rem;
    font-family: DDin;
    font-weight: 700;
    line-height: 2.38rem;
    caret-color: transparent;
    user-select: none;
}

.sectionContainer {
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
    display: flex;
    justify-content: left;
    padding-top: 1%;
    flex-wrap: wrap;
    caret-color: transparent;
}

.section_unused {
    background-color: #daf7f6;
    border-radius: 0.94rem;
    width: 15rem;
    height: 8rem;
    margin-right: 2.75rem;
    margin-bottom: 2rem;
}

.section_used {
    background-color: #f7e3da;
    border-radius: 0.94rem;
    width: 15rem;
    height: 8rem;
    margin-right: 2.75rem;
    margin-bottom: 2rem;
}

.section_lended {
    background-color: #dae1f7;
    border-radius: 0.94rem;
    width: 15rem;
    height: 8rem;
    margin-right: 2.75rem;
    margin-bottom: 2rem;
}

.searchTerm {
    border: none;
    background-color: #f7f7f7;
    outline: none;
    width: 55rem;
    height: 100%;
}

.searchTerm:focus {
    border: none;
    background-color: #f7f7f7;
    outline: none;

}

.bed_id {
    padding-top: 1rem;
    font-size: 20px;
}





.ward_list {
    position: relative;
    display: none;

    /* 初始隐藏 */
    border: 1px;
    background-color: #fff;
    padding: 10px;
    margin-top: 5px;
    margin-left: 5%;
    margin-right: 10%;
    /* 添加滚动条 */
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background-color: #65b8b5;
    border-radius: 0.5rem;
    float: right;
    cursor: pointer;
    color: white;
    border: none;

}

.ward_list-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    caret-color: transparent;
}

.ward_containter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 15%;
    caret-color: transparent;
    user-select: none;
}

.ward_point {
    display: inline-block;
    border: 1px solid #65b8b5;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border-radius: 50%;
    margin-bottom: 20px;
    caret-color: transparent;
    user-select: none;
}

.ward_name {
    display: inline-block;
    margin-bottom: 20px;
    margin-left: 5px;
    caret-color: transparent;
    user-select: none;
}

.dept_name {
    color: #1daba6;
    font-size: 1rem;
    font-family: HarmonyOSSansSC;
    line-height: 0.7rem;
    margin-top: 0.44rem;
    margin-bottom: 0.2rem;
    caret-color: transparent;
    user-select: none;
    width: 100%
}

.main-content {
    padding: 20px 40px;
    margin-left: 200px;
    width: calc(100% - 200px);
    box-sizing: border-box;
    min-height: calc(100vh - 60px);
}

.filter-section {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-item select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 180px;
    font-size: 14px;
}

.stats-section {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.beds-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.beds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 10px;
    width: 100%;
}

.bed-card {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bed-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.bed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bed-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.bed-card.available {
    background-color: #daf7f6;
    border-color: #b5e5e3;
}

.bed-card.available .bed-status {
    background-color: #b5e5e3;
    color: #2a8a87;
}

.bed-card.occupied {
    background-color: #f7e3da;
    border-color: #e5c5b5;
}

.bed-card.occupied .bed-status {
    background-color: #e5c5b5;
    color: #8a4d2a;
}

.bed-card h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.bed-info {
    margin-top: 15px;
}

.bed-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bed-info i {
    width: 16px;
    color: #666;
}

/* 适配大屏幕 */
@media (min-width: 1440px) {
    .main-content {
        padding: 25px 50px;
    }
    
    .beds-grid {
        gap: 30px;
    }
}

/* 适配中等屏幕 */
@media (max-width: 1200px) {
    .main-content {
        padding: 15px 30px;
    }
    
    .beds-grid {
        gap: 20px;
    }
}

/* 适配小屏幕 */
@media (max-width: 768px) {
    .beds-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
}

/* 添加一个用于禁止滚动的类 */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* 防止滚动条消失导致页面抖动 */
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    overflow-y: auto; /* 许模态框内容滚动 */
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    /*padding: 25px;*/
    /*width: 90%;*/
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh; /* 限制最大高度 */
    overflow-y: auto; /* 允许内容滚动 */
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close:hover {
    color: #f44336;
}

/* 添加响应式布局优化 */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex: 1;
    margin-top: 0;
}

.leftColumn {
    position: fixed;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* 床位详情样式 */
.bed-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bed-detail-header h3 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}

.bed-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.bed-status-badge.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.bed-status-badge.occupied {
    background-color: #ffebee;
    color: #c62828;
}

.bed-detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bed-detail-section h4 {
    margin: 0 0 15px 0;
    color: #2196f3;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bed-detail-section h4 i {
    font-size: 1.1em;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    color: #666;
    font-size: 0.9em;
}

.detail-item span {
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bed-detail-section {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.bed-detail-section:nth-child(2) {
    animation-delay: 0.1s;
}

.bed-detail-section:nth-child(3) {
    animation-delay: 0.2s;
}

.bed-detail-section:nth-child(4) {
    animation-delay: 0.3s;
}

/* 不同科室的颜色样式 */
/* 神经内科 - 蓝绿色系 */
.bed-card.available.dept-神经内科 {
    background-color: #e0f7fa;
    border-color: #80deea;
}
.bed-card.occupied.dept-神经内科 {
    background-color: #b2ebf2;
    border-color: #4dd0e1;
}

/* 骨科 - 粉色系 */
.bed-card.available.dept-骨科 {
    background-color: #fce4ec;
    border-color: #f48fb1;
}
.bed-card.occupied.dept-骨科 {
    background-color: #f8bbd0;
    border-color: #f06292;
}

/* 儿科 - 绿色系 */
.bed-card.available.dept-儿科 {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
}
.bed-card.occupied.dept-儿科 {
    background-color: #c8e6c9;
    border-color: #81c784;
}

/* 妇科 - 橙色系 */
.bed-card.available.dept-妇科 {
    background-color: #fff3e0;
    border-color: #ffcc80;
}
.bed-card.occupied.dept-妇科 {
    background-color: #ffe0b2;
    border-color: #ffb74d;
}

/* 内科 - 蓝色系 */
.bed-card.available.dept-内科 {
    background-color: #e3f2fd;
    border-color: #90caf9;
}
.bed-card.occupied.dept-内科 {
    background-color: #bbdefb;
    border-color: #64b5f6;
}

/* 外科 - 紫色系 */
.bed-card.available.dept-外科 {
    background-color: #f3e5f5;
    border-color: #ce93d8;
}
.bed-card.occupied.dept-外科 {
    background-color: #e1bee7;
    border-color: #ba68c8;
}

/* 心内科 - 红色系 */
.bed-card.available.dept-心内科 {
    background-color: #ffebee;
    border-color: #ef9a9a;
}
.bed-card.occupied.dept-心内科 {
    background-color: #ffcdd2;
    border-color: #e57373;
}

/* 呼吸科 - 青色系 */
.bed-card.available.dept-呼吸科 {
    background-color: #e0f2f1;
    border-color: #80cbc4;
}
.bed-card.occupied.dept-呼吸科 {
    background-color: #b2dfdb;
    border-color: #4db6ac;
}

/* 眼科 - 黄色系 */
.bed-card.available.dept-眼科 {
    background-color: #fffde7;
    border-color: #fff176;
}
.bed-card.occupied.dept-眼科 {
    background-color: #fff9c4;
    border-color: #ffee58;
}

/* 口腔科 - 棕色系 */
.bed-card.available.dept-口腔科 {
    background-color: #efebe9;
    border-color: #bcaaa4;
}
.bed-card.occupied.dept-口腔科 {
    background-color: #d7ccc8;
    border-color: #a1887f;
}

/* 耳鼻喉科 - 深紫色系 */
.bed-card.available.dept-耳鼻喉科 {
    background-color: #ede7f6;
    border-color: #b39ddb;
}
.bed-card.occupied.dept-耳鼻喉科 {
    background-color: #d1c4e9;
    border-color: #9575cd;
}

/* 皮肤科 - 粉橙色系 */
.bed-card.available.dept-皮肤科 {
    background-color: #fbe9e7;
    border-color: #ffab91;
}
.bed-card.occupied.dept-皮肤科 {
    background-color: #ffccbc;
    border-color: #ff8a65;
}

/* 急诊科 - 深红色系 */
.bed-card.available.dept-急诊科 {
    background-color: #ffebee;
    border-color: #ef5350;
}
.bed-card.occupied.dept-急诊科 {
    background-color: #ffcdd2;
    border-color: #e53935;
}

/* 精神科 - 靛蓝色系 */
.bed-card.available.dept-精神科 {
    background-color: #e8eaf6;
    border-color: #9fa8da;
}
.bed-card.occupied.dept-精神科 {
    background-color: #c5cae9;
    border-color: #7986cb;
}

/* 中医科 - 深绿色系 */
.bed-card.available.dept-中医科 {
    background-color: #f1f8e9;
    border-color: #aed581;
}
.bed-card.occupied.dept-中医科 {
    background-color: #dcedc8;
    border-color: #9ccc65;
}

/* 复科 - 青绿色系 */
.bed-card.available.dept-康复科 {
    background-color: #e0f2f1;
    border-color: #80cbc4;
}
.bed-card.occupied.dept-康复科 {
    background-color: #b2dfdb;
    border-color: #4db6ac;
}

/* 默认样式 - 用于未指定科室的床位 */
.bed-card.available {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}
.bed-card.occupied {
    background-color: #eeeeee;
    border-color: #bdbdbd;
}

/* 床位详情模态框样式 */
.bed-detail-modal {
    width: fit-content;
    min-width: 600px;
    max-width: 800px;
    margin: 10vh auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    background: #fff;
    overflow: hidden;
}

.bed-detail-content {
    padding: 0 25px 25px 25px;
}

.bed-detail-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.detail-grid.single-row {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.detail-item {
    flex: 1;
    min-width: 150px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 病人信息的网格布局 */
.bed-detail-section:last-child .detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .bed-detail-modal {
        min-width: 90%;
        margin: 3vh auto;
    }
    
    .bed-detail-content {
        grid-template-columns: 1fr;
    }
    
    .bed-detail-section:last-child .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bed-detail-section:last-child .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid.single-row {
        flex-wrap: wrap;
    }
}

/* 关闭按钮样式 */
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: white;
    transform: rotate(90deg);
}

/* 模态框背景 */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.bed-detail-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-overlay.show .bed-detail-modal {
    transform: translateY(0);
}

.bed-detail-header {
    padding: 20px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bed-detail-header.available {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.bed-detail-header.occupied {
    background: linear-gradient(135deg, #ff5722, #f4511e);
}

.bed-id {
    font-size: 24px;
    font-weight: bold;
}

.bed-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.bed-detail-content {
    padding: 20px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.info-section:nth-child(1) { animation-delay: 0.1s; }
.info-section:nth-child(2) { animation-delay: 0.2s; }
.info-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: #1daba6;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    color: #666;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}